package model;

public class Player {
	private String name;
	private char mark;
	private int index = 0;
	public Player(String name, char mark) {
		setName(name);
		setMark(mark);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		if(name!=null && name.length()>=0){
			this.name = name;
		} else {
			
			this.name = "unnamed(" + this.index + ")";
			this.index++;
		}
	}

	public char getMark() {
		return mark;
	}

	public void setMark(char mark) {
		this.mark = mark;
	}	
}
